import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DeviceAuditController } from './device-audit.controller';
import { DeviceAuditService } from './device-audit.service';
import { DeviceAuditCodeRepository } from './device-audit-code.repository';
import { DeviceAuditCode } from './entities/device-audit-code.entity';
import { DevicesModule } from '../devices/devices.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([DeviceAuditCode]),
    DevicesModule, // Import DevicesModule to use DevicesService
  ],
  controllers: [DeviceAuditController],
  providers: [DeviceAuditService, DeviceAuditCodeRepository],
  exports: [DeviceAuditService],
})
export class DeviceAuditModule {}
